#include "stdafx.h"
#include "Effect.h"

Graphics::Effect::Effect()
{
	myEffect = NULL;
}

Graphics::Effect::~Effect()
{

}

void Graphics::Effect::Init(LPD3DXEFFECT aEffect)
{
	DL_CHK_CRITICAL(aEffect != NULL, "Effect initialized with NULL");
	myEffect = aEffect;
}

LPD3DXEFFECT Graphics::Effect::GetEffect()
{
	DL_CHK_CRITICAL(myEffect != NULL, "Accessing an effect with a NULL LPD3DXEFFECT");
	return myEffect;
}